/*   1:    */ package tt.dz.vo.request;
/*   2:    */ 
/*   3:    */ import tt.dz.biz.annotation.RequestRequire;
/*   4:    */ import tt.dz.common.BusinessException;
import tt.dz.common.DzConstants;
/*   5:    */ import tt.dz.common.DzConstants.ThirdAccountType;
/*   6:    */ import tt.dz.common.DzConstants.bizSysCode;
import tt.dz.common.DzErrorCode;
/*   7:    */ import tt.dz.common.DzErrorCode.CommonErrorCode;
/*   8:    */ import tt.dz.common.DzErrorCode.ThirdAccountErrorCode;
/*   9:    */ 
/*  10:    */ public class IsBindThirdAccountRpcRequestVo
/*  11:    */   extends BaseRpcRequestVo
/*  12:    */ {
/*  13:    */   @RequestRequire(required=true)
/*  14:    */   private String tokenKey;
/*  15:    */   @RequestRequire(required=true)
/*  16:    */   private String bindType;
/*  17:    */   @RequestRequire(required=true)
/*  18:    */   private String thirdUuuid;
/*  19:    */   @RequestRequire(required=true)
/*  20:    */   private String merchantCode;
/*  21:    */   @RequestRequire(required=true)
/*  22:    */   private String sysCode;
/*  23:    */   
/*  24:    */   public String getTokenKey()
/*  25:    */   {
/*  26: 52 */     return this.tokenKey;
/*  27:    */   }
/*  28:    */   
/*  29:    */   public void setTokenKey(String tokenKey)
/*  30:    */   {
/*  31: 56 */     this.tokenKey = tokenKey;
/*  32:    */   }
/*  33:    */   
/*  34:    */   public String getBindType()
/*  35:    */   {
/*  36: 60 */     return this.bindType;
/*  37:    */   }
/*  38:    */   
/*  39:    */   public void setBindType(String bindType)
/*  40:    */   {
/*  41: 64 */     this.bindType = bindType;
/*  42:    */   }
/*  43:    */   
/*  44:    */   public String getThirdUuuid()
/*  45:    */   {
/*  46: 68 */     return this.thirdUuuid;
/*  47:    */   }
/*  48:    */   
/*  49:    */   public void setThirdUuuid(String thirdUuuid)
/*  50:    */   {
/*  51: 72 */     this.thirdUuuid = thirdUuuid;
/*  52:    */   }
/*  53:    */   
/*  54:    */   public String getMerchantCode()
/*  55:    */   {
/*  56: 76 */     return this.merchantCode;
/*  57:    */   }
/*  58:    */   
/*  59:    */   public void setMerchantCode(String merchantCode)
/*  60:    */   {
/*  61: 80 */     this.merchantCode = merchantCode;
/*  62:    */   }
/*  63:    */   
/*  64:    */   public String getSysCode()
/*  65:    */   {
/*  66: 84 */     return this.sysCode;
/*  67:    */   }
/*  68:    */   
/*  69:    */   public void setSysCode(String sysCode)
/*  70:    */   {
/*  71: 88 */     this.sysCode = sysCode;
/*  72:    */   }
/*  73:    */   
/*  74:    */   public void validateRpcRequire()
/*  75:    */     throws BusinessException
/*  76:    */   {
/*  77:103 */     super.validateRpcRequire();
/*  78:104 */     DzConstants.bizSysCode sysCodeEnum = DzConstants.bizSysCode.indexOf(getSysCode());
/*  79:106 */     if (null == sysCodeEnum) {
/*  80:107 */       throw new BusinessException(DzErrorCode.CommonErrorCode.SYS_CODE_NOT_FOUND.value(), DzErrorCode.CommonErrorCode.SYS_CODE_NOT_FOUND.getDesc());
/*  81:    */     }
/*  82:109 */     if (null == DzConstants.ThirdAccountType.indexOf(this.bindType)) {
/*  83:110 */       throw new BusinessException(DzErrorCode.ThirdAccountErrorCode.EXCEPTION_ACCOUNT_BIND_TYPE.value(), DzErrorCode.ThirdAccountErrorCode.EXCEPTION_ACCOUNT_BIND_TYPE.getDesc());
/*  84:    */     }
/*  85:    */   }
/*  86:    */ }


/* Location:           F:\work\pengyu\mainServer\WEB-INF\classes\
 * Qualified Name:     tt.dz.vo.request.IsBindThirdAccountRpcRequestVo
 * JD-Core Version:    0.7.0.1
 */